package demo1;

public abstract class Adult extends Doctor{
    boolean marriage;
    String address;

    public Adult(){

    }

    public Adult(boolean marriage, String address) {
        this.marriage = marriage;
        this.address = address;
    }

    public Adult(String specialty, double salary, String hospitalName, boolean marriage, String address) {
        super(specialty, salary, hospitalName);
        this.marriage = marriage;
        this.address = address;
    }

    public void recreation(){

    }
}
